package com.qingke.action;

import java.text.Collator;
import java.util.Comparator;

import com.qingke.pojo.Message;

public class MessageComparator  implements Comparator<Message>{
	
	public int compare(Message o1, Message o2) {
		Collator myCollator=Collator.getInstance();
		return myCollator.compare(o1.getName(), o2.getName());
	}
	public MessageComparator getNameCompare(){
		return new MessageComparator();
	}
}
